package com.model.dto.sys.LoginController;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class GetCodeByMobileDTO {
    @ApiModelProperty(value = "手机号不能为空，手机号长度为11位",required = true)
    @NotNull(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号长度为11位")
    String mobile;
}
